﻿capital = 76

oob = "OLE_1007"

set_research_slots = 3

add_breakthrough_progress = {
	specialization = specialization_naval
	value = 0.3
}
add_breakthrough_progress = {
	specialization = specialization_land
	value = 0.1
}


set_technology = {
	deer_race = 1
	melee_weapons = 1
	melee_weapons1 = 1
	pre_gw_artillery = 1
	infantry_weapons = 1
	interwar_antitank = 1
	gw_artillery = 1
	tech_support = 1
	tech_mountaineers = 1
	tech_recon = 1
	tech_engineers = 1
	fuel_silos = 1
	basic_train = 1
	tech_trucks = 1
	motorised_infantry = 1
}
if = {
	limit = { has_dlc = "By Blood Alone" }
	set_technology = {
		aa_lmg = 1
		early_bombs = 1
		aircraft_construction = 1
		engines_1 = 1
		iw_small_airframe = 1
		iw_medium_airframe = 1
		bba_early_transport_plane = 1
	}

	create_equipment_variant = {
		name = "KH/5"
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			special_type_slot_7 = normally_aspirated_engine
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
		icon = "GFX_olenia_2d_early_fighter_medium"
	}
	create_equipment_variant = {
		name = "PP/4"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			special_type_slot_7 = normally_aspirated_engine
			engine_type_slot = engine_1_3x
			fixed_auxiliary_weapon_slot_5 = lmg_defense_turret
		}
		icon = "GFX_olenia_2d_early_bomber_medium"
	}
	set_air_oob = "OLE_1007_air_bba"

	else = {
		set_technology = {
			early_fighter = 1
			early_bomber = 1
			early_transport_plane = 1
		}
		set_air_oob = "OLE_1007_air_legacy"
	}
}
actually_fix_weapon_techs = yes #THIS HAS TO BE CALLED IN EVERY HISTORY FILE RIGHT AFTER MAIN set_technology!
if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}
if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {	
		armored_car1 = 1
	}
}
set_technology = {
		basic_naval_mines = 1
		submarine_mine_laying = 1
		basic_depth_charges = 1
		basic_torpedo = 1
		basic_battery = 1
		early_ship_hull_submarine = 1
	torpedo_gunboats = 1
		early_ship_hull_light = 1
	protected_cruisers = 1
		early_ship_hull_cruiser = 1
	pre_dreadnoughts = 1
		early_ship_hull_heavy = 1
		coastal_defense_ships = 1
		mtg_transport = 1
}
set_naval_oob = "OLE_1007_naval"
add_equipment_to_stockpile = {
	type = infantry_equipment_0
	amount = 3000
	producer = OLE
}
add_equipment_to_stockpile = {
	type = infantry_equipment_0
	amount = 3000
	producer = EQS
}
add_equipment_to_stockpile = {
	type = melee_equipment_1
	amount = 5000
	producer = EQS
}
add_equipment_to_stockpile = {
	type = gw_tank_equipment
	amount = 50
	producer = EQS
}
set_convoys = 69
set_popularities = {
	democratic = 20
	fascism = 8
	communism = 12
	neutrality = 60
}
set_politics = {
	ruling_party = neutrality
	last_election = "1000.10.10"
	election_frequency = 36
	elections_allowed = no
}
set_country_flag = has_custom_advisors

add_ideas = {
	OLE_currupt_government
	OLE_raising_dissent
	outdated_industry
}

set_stability = 0.65
#set_war_support = 0.4

recruit_character = OLE_king_johan_djavulen
recruit_character = OLE_allsherjargothi_jurva
recruit_character = OLE_queen_velvet
recruit_character = OLE_kullervo_sirola
recruit_character = OLE_lord_roshuo
recruit_character = OLE_haakon_lurswig
recruit_character = OLE_spurdo_s_perkele
recruit_character = OLE_ansa_sito
recruit_character = OLE_alvari_pirhonen
recruit_character = OLE_einair_kainen
recruit_character = OLE_eilert
recruit_character = OLE_rikka_kaalinpaa
recruit_character = OLE_carl_gustaf_manntlerhim
recruit_character = OLE_lauri_virta
recruit_character = OLE_ilma_anjanen
recruit_character = OLE_fredrik_haataja
recruit_character = OLE_communist_revolutionary
recruit_character = OLE_democratic_reformer
recruit_character = OLE_fascist_demagogue
recruit_character = OLE_vitas
recruit_character = OLE_alla_janis
recruit_character = OLE_captain_of_industry 
recruit_character = OLE_captain_of_industry_com
recruit_character = OLE_vihannes_maukas 
recruit_character = OLE_sopo_nokkela
recruit_character = OLE_huijata_jobbari
recruit_character = OLE_fortification_engineer
recruit_character = OLE_war_industrialist
recruit_character = OLE_prince_of_terror
recruit_character = OLE_backroom_backstabber
recruit_character = OLE_silent_workhorse
recruit_character = OLE_haakon_chief
recruit_character = OLE_blule
recruit_character = OLE_ideoista
recruit_character = OLE_olensson
recruit_character = OLE_samu_erkalo 
recruit_character = OLE_jojo_olen
recruit_character = ole_Elmo_Wirtanen 
recruit_character = OLE_alueella
recruit_character = OLE_neuvonantaja
recruit_character = OLE_ajattelija
recruit_character = OLE_vaeltaja
recruit_character = OLE_huunnittelija
recruit_character = OLE_alus
recruit_character = OLE_mieli
recruit_character = OLE_Vidkun_Hjortsling
recruit_character = OLE_prinve_djavulen
recruit_character = OLE_elain_olsen

set_rule = {
	can_generate_female_aces = yes
	can_generate_female_unit_leaders  = yes
	can_generate_female_country_leaders = yes
}

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	create_equipment_variant = {
		name = "Haakon Tyyppi-2"
		type = light_tank_chassis_0
		parent_version = 0
		modules = {
			main_armament_slot = tank_small_cannon
			turret_type_slot = tank_light_one_man_tank_turret
			suspension_type_slot = tank_bogie_suspension
			armor_type_slot = tank_riveted_armor
			engine_type_slot = tank_gasoline_engine
		}
		upgrades = {
			tank_nsb_engine_upgrade = 1
			tank_nsb_armor_upgrade = 1
		}
		icon = "gfx/interface/technologies/armour_folder/olenia_2d/OLE_gwtank.dds"
	}
}

# Submarines #
create_equipment_variant = {
		name = "Kuha Class"
		type = ship_hull_submarine_1
		name_group = OLE_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = ship_mine_layer_sub
		}
}
create_equipment_variant = {
		name = "Hauki Class"
		type = ship_hull_submarine_1
		name_group = OLE_SS_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_torpedo_slot = ship_torpedo_sub_1
			fixed_ship_engine_slot = sub_ship_engine_1
			rear_1_custom_slot = empty
		}
	obsolete = yes
}
# Destroyers #
create_equipment_variant = {
		name = "Vesilisko Class"				# minelayer		
		type = ship_hull_light_1
		name_group = OLE_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = ship_mine_layer_1
			rear_1_custom_slot = ship_mine_layer_1
		}
		obsolete = yes
}
create_equipment_variant = {
		name = "Majava Class"
		type = ship_hull_light_1
		name_group = OLE_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = ship_depth_charge_1
		}
}
# Heavy Cruisers #
create_equipment_variant = {
		name = "Hjortland Class"
		type = ship_hull_cruiser_1
		name_group = OLE_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			mid_1_custom_slot = ship_anti_air_1
			mid_2_custom_slot = ship_secondaries_1
			rear_1_custom_slot = ship_medium_battery_1
		}
}
# Cruisers #
create_equipment_variant = {
		name = "Sakara Class"
		type = ship_hull_cruiser_1
		name_group = OLE_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_light_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			mid_1_custom_slot = ship_airplane_launcher_1
			mid_2_custom_slot = ship_torpedo_1
			rear_1_custom_slot = ship_mine_layer_1
		}
}
# BC #
create_equipment_variant = {
		name = "Crown Class"
		type = ship_hull_pre_dreadnought
		name_group = OLE_BB_BC_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = heavy_ship_engine_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bb_1
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = ship_secondaries_1
			rear_1_custom_slot = empty
		}
}
create_equipment_variant = {
		name = "Aldar Class"
		type = ship_hull_heavy_1
		name_group = OLE_BB_BC_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_1
			fixed_ship_radar_slot = empty
		fixed_ship_engine_slot = heavy_ship_engine_1
			fixed_ship_secondaries_slot = ship_secondaries_1
			fixed_ship_armor_slot = ship_armor_bc_1
			front_1_custom_slot = ship_anti_air_1
			mid_1_custom_slot = empty
			mid_2_custom_slot = ship_secondaries_1
			rear_1_custom_slot = ship_heavy_battery_1
		}
}